package com.liuhaha.subject.domain.convert;

import com.liuhaha.subject.domain.entity.SubjectInfoBO;
import com.liuhaha.subject.domain.entity.SubjectLabelBO;
import com.liuhaha.subject.infra.basic.entity.SubjectInfo;
import com.liuhaha.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author liuhaha
 * @version 1.0
 * @date 2024-05-16 14:38
 */
@Mapper
public interface SubjectLabelConverter {

    SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

    SubjectLabel convertBoToLabel(SubjectLabelBO subjectLabelBO);

    List<SubjectLabelBO> convertLabelToBoList (List<SubjectLabel> subjectLabelList);

}
